Skip to content

Conversation

rapsealk
Copy link
Contributor

Hello graphene-django!

This pull request replaces raw HTTP status codes with their corresponding values from the standard library's http.HTTPStatus enum — as a follow-up to #1487. This improves readability and aligns with modern Python conventions.

http.HTTPStatus has been available since Python 3.5, so this change should remain compatible with all currently supported versions of Python and not affect backporting.

Thanks for your time and review! 🙌

@syrusakbary
Copy link
Member

The upcoming changes into graphql-server will make this PR not necessary (since most HTTP server logic will be handled there).

I'll keep the PR opened until graphene-django gets updated with the new server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants